Desktop Dustbin (Updated)
by David Spencer

This is a corrected version of the Desktop Dustbin
supplied on the Magzine Disc for Volume 2 Issue 6.
The original program occasionally generated an
error when a file was 'binned'.

Running this program installs a 'dustbin' icon on
the left-hand side of the icon bar. Dragging files
to this icon 'saves' them in the dustbin. Clicking
on the dustbin icon opens a window displaying the
contents of the dustbin. Files can be dragged from
this window, removing them from the dustbin.
Clicking Menu over the dustbin icon allows the
dustbin to be emptied or the program terminated.
If there are any files in the dustbin when it is
terminated, then they can be retrieved from
!Dustbin.Rubbish.

Amendments 11/12/89 by JMD

1)   The Bin can no longer be dragged onto itself as
      this caused a recursive loop, and filled up the disk.
2)   The bin is not emptied when started, it can now only
      be emtied by a positive request via menu.
3)   The bin is not re-started if already running see !Run.
4)   The *Wipe has been dissabled via normal filer menu.
5)   When the bin is selected and the window is not the
       top window it is bought to the top.
6)   The menu hight has been correted.
7)   The bin now caters for 77 items instead of 50!!
8)   Wimp$Scrap can now be used for transfer from bin
       to application, file is not removed from bin in this case.
9)   Name placed under sprite on icon bar. (with help form DC)
10) Created info template and added info to menu's,
      version string is updated via program.
11) Removed the ability to empty from icon bar menu, now
      the dustbin can only be emptied from dustbin window.
     Ie. use select to open window and the use menu when pointer
           is in window, the bin can now be emptied.
12) Drag box is not done if pointer on icon in viewer
      as this created a large drag box at 0,0.
13) Interactive help added.
14) All real variables changed to interger for speed.
15) Window changed to same as Filer but red text
       and outline.
16) Removed the PROCreadfiles from window open poll.
17) If drag started and not moved the readfiles is no longer
      started. ie. if destination and source is bin the nothing 
      happens. It used to go through the whole process
      to go no where.
18) Stopped icon flashing everytime something binned.
      only flashes when bin status is actually changed.
19) Adjusted height of dustbin on icon bar (down) 
20) If dustbin empty then the menu item is greyed out.
21) Bin  full sprite has the lid raised. 

Amendments 14/06/90 by OJG
1) If you hold down <Shift> when you drag a file to the bin it will be
      deleted and not stored. The computer will also beep.